import React, { Component } from 'react';
import { render } from 'react-dom';
import {Link} from 'react-router-dom';
import Messagelist from './messagelist';
require('../public/css/mycss.css');

export class MessageAll extends Component {
    render() {
        let params=this.props.match.params;
        let path=`/message/${params.userName}/${params.id}`;
        return <div>
            <h2><Link to={path} > 我的留言</Link></h2>
            <h3><Link to='/'>退出</Link></h3>
            <p>当前位置：<strong>留言列表</strong></p>
            <hr className=""/>
            <div>
                <Messagelist source="/getmessage"/>
            </div>
          </div>
    }
}
